<h1>ManageShop#product_list</h1>
<p>Find me in app/views/manage_shop/product_list.html.erb</p>
<table>
<% for product in @products %>
  <tr>
    <td><%=h product.title %></td>
    <td><%=h product.price %></td>
    <td><%=h product.description %></td>
    <td><%=link_to(image_tag(product.img_url,:size=>"80x100"),{:action=>:product_show,:id=>product.id}) %></td>
    <td><%=h product.amount %></td>
    <td><%= link_to 'Show', {:action=>"product_show",:id=>product.id}%></td>
    <td><%= link_to 'Edit', {:action=>"product_edit",:id=>product.id} %></td>
    <td><%= link_to 'Destroy',{:action=>"product_destroy",:id=>product.id},:method=>:post%></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New product',{:action=>"product_new"} %>